package znbkListRdqh.isNeedPaperAssembly;

import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxFragment;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2018\4\19 0019.
 */

public class NeedPaperAssemblyApi extends BaseApi{

    private int moduleType;

    public int getModuleType() {
        return moduleType;
    }

    public void setModuleType(int moduleType) {
        this.moduleType = moduleType;
    }

    public NeedPaperAssemblyApi(HttpOnNextListener listener, RxFragment rxFragment) {
        super(listener, rxFragment);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        GetServer getServer = retrofit.create(GetServer.class);
        return getServer.getIsNeedPaperAssembly(UserInfo.StuId,
                UserInfo.SubjectId, UserInfo.StageNo,moduleType);

    }


}
